import Vue from 'vue'
import Router from 'vue-router'
// 路由懒加载
const Index = (resolve) => {
  import('@/components/index').then((module) => {
    resolve(module)
  })
}

const Refresh = (resolve) => {
  import('@/components/Refresh').then((module) => {
    resolve(module)
  })
}

const down = (resolve) => {
  import('@/components/down').then((module) => {
    resolve(module)
  })
}

const InsurancePro = (resolve) => {
  import('@/components/InsurancePro').then((module) => {
    resolve(module)
  })
}




Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/down',
      name: 'down',
      component: down
    },

    {
      path: '/InsurancePro',
      name: 'InsurancePro',
      component: InsurancePro
    },
    {
      path: '/refresh',
      name: 'Refresh',
      component: Refresh
    }
  ]
})
